package com.jiyun.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/*
 * 作者：m鹏h
 * 时间；2023/8/11 14:49
 * 描述：
 **/
@Data
@ToString
@TableName(value = "member")
public class Member implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String memberPhoto;

    private String memberName;

    private String memberJobId;

    private String memberSex;

    private String idi;
    private Integer teamId;
    private Integer unitId;
    private String acc;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private String memberStatus;

    private String memberRoleId;

    @TableField(exist = false)
    private String memberRoleName;

    @TableField(exist = false)
    private String unitIdName;

    private String username;
    private String password;


}
